<?php
// Load Menu
$this->template->menu('cliente/add');
?>
 
<div id="container">
    <?php echo form_open('cliente/save'); ?>
    	<?php echo validation_errors('<p>','</p>'); ?>
	    <table class="table_form">
	        <tr>
	            <td>
	            	<?php echo form_label('Nome*', 'nome'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('nome', $nome); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Telefone*', 'telefone'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('telefone', $telefone); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Email*', 'email'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('email', $email); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('CPF*', 'cpf'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('cpf', $cpf); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Endereço', 'endereco'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('endereco', $endereco); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('CEP', 'cep'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('cep', $cep); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Cidade', 'cidade'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('cidade', $cidade); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Estado', 'estado'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('estado', $estado); ?>
	            </td>
	        </tr>
	        <tr>
	            <td>
	            	<?php echo form_label('Bairro', 'bairro'); ?>
	            </td>
	            <td>
	            	<?php echo form_input('bairro', $bairro); ?>
	            </td>
	        </tr>
	        <tr>
	            <td colspan="2">
	            <?php if (isset($id)) echo form_hidden('id', $id); ?>
	            <div class="form-save-buttons">
	                <?php echo form_submit('save', 'Save', 'class="btn-blue"'); ?>
	                <?php echo form_button('cancel', 'Cancel', 'class="btn-blue" onClick="history.go(-1)"'); ?>
	            </div>
	            </td>
	        </tr>
	    </table>
    <?php echo form_close(); ?>
</div>